cmake_minimum_required (VERSION 2.8)

project(mosquitto_pub)

include_directories("usr/include/")              #设置头文件路径
link_directories("/usr/lib/")                    #设置库路径

aux_source_directory(. DIR_SRCS)

add_executable(mosquitto_pub ${DIR_SRCS})

target_link_libraries(mosquitto_pub libmosquitto.so.1)